import request from '@/utils/request'

// 查询公众号信息列表
export function listWechatAccounts(query) {
  return request({
    url: '/system/WechatAccounts/list',
    method: 'get',
    params: query
  })
}

// 查询公众号信息详细
export function getWechatAccounts(accountId) {
  return request({
    url: '/system/WechatAccounts/' + accountId,
    method: 'get'
  })
}

// 新增公众号信息
export function addWechatAccounts(data) {
  return request({
    url: '/system/WechatAccounts',
    method: 'post',
    data: data
  })
}

// 修改公众号信息
export function updateWechatAccounts(data) {
  return request({
    url: '/system/WechatAccounts',
    method: 'put',
    data: data
  })
}

// 删除公众号信息
export function delWechatAccounts(accountId) {
  return request({
    url: '/system/WechatAccounts/' + accountId,
    method: 'delete'
  })
}
